package com.heima.kafka.sample;

/**
 * @author tmh
 * @date 2023/8/24 11:35
 * @description
 */
public class TestTry {
    public static void main(String[] args) {
        try {
            for (int i = 0; i < 2; i++) {
                System.out.println(i);
            }
//            int a=1/0;
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                System.out.println("finally里面的try执行了");
            }finally {
                System.out.println("运行结束");
            }
        }

    }
}
